package com.exam.service.serviceImpl;

import com.exam.entity.sys.SysUser;
import com.exam.mapper.sys.SysUserMapper;
import com.exam.service.SysUserService;

import java.util.List;
import java.util.Map;

public class SysUserServiceImpl implements SysUserService {
    private SysUserMapper sysUserMapper;

    public void setSysUserMapper(SysUserMapper sysUserMapper) {
        this.sysUserMapper = sysUserMapper;
    }

    @Override
    public Map<Object,Object> find_user_by_u_sno(String u_sno) {
        return sysUserMapper.find_user_by_u_sno(u_sno);
    }

    @Override
    public List<Map<String,Object>> get_all_user() {
        return sysUserMapper.get_all_user();
    }

    @Override
    public int del_user_by_u_id(int u_id) {
        return sysUserMapper.del_user_by_u_id(u_id);
    }

    @Override
    public int update_user_state_by_u_id(Map<String, Integer> map) {
        return sysUserMapper.update_user_state_by_u_id(map);
    }

    @Override
    public int update_user_by_u_id(SysUser sysUser) {
        return sysUserMapper.update_user_by_u_id(sysUser);
    }

    @Override
    public List<SysUser> get_all_user1() {
        return sysUserMapper.get_all_user1();
    }

    @Override
    public int add_user(SysUser sysUser) {
        return sysUserMapper.add_user(sysUser);
    }

    @Override
    public int update_user_role_by_u_id(SysUser sysUser) {
        return sysUserMapper.update_user_role_by_u_id(sysUser);
    }

    @Override
    public int num5() {
        return sysUserMapper.num5();
    }

    @Override
    public int update_user_psw_by_u_id(SysUser sysUser) {
        return sysUserMapper.update_user_psw_by_u_id(sysUser);
    }

    @Override
    public int get_user_by_u_sno(String u_sno) {
        return sysUserMapper.get_user_by_u_sno(u_sno);
    }
}
